/* admin_dashboard.css */
.summary-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.summary-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.summary-card .number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-card .title {
    color: #6e707e;
    font-size: 0.9rem;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.role-badge {
    padding: 0.35em 0.65em;
    border-radius: 10rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.role-admin { background-color: #e0e6ff; color: #4e73df; }
.role-sales { background-color: #d1f7e4; color: #1cc88a; }
.role-warehouse { background-color: #fff8e1; color: #b78103; }
.role-salesadmin { background-color: #e0f7f5; color: #00bcd4; }
.role-aftersales { background-color: #ffeef0; color: #e54b62; }

.action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.2rem;
}

.search-bar {
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    padding: 0.375rem 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d3e2;
    margin-bottom: 20px;
}

.customer-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.customer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4e73df;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.customer-info {
    padding: 15px;
}

.customer-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.customer-phone {
    color: #6c757d;
    font-size: 0.85rem;
}

.customer-address {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-actions {
    border-top: 1px solid #eaeaea;
    padding: 10px 15px;
    background-color: #f8f9fa;
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #4e73df;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #4e73df;
    border-radius: 3px;
}

.recent-customers {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.last-login {
    font-size: 0.75rem;
    color: #6c757d;
}

/* 新增的分页样式 */
.pagination .page-item.active .page-link {
    background-color: #4e73df;
    border-color: #4e73df;
}

.pagination .page-link {
    color: #4e73df;
}

/* 消息提示样式 */
.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

/* 仪表板头部样式 */
.dashboard-header {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

/* 卡片样式 */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    padding: 1rem 1.5rem;
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

/* 进度条样式 */
.progress {
    height: 8px;
}

.progress-bar {
    background-color: #4e73df;
}

.scrollable-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* 滚动条美化 */
.scrollable-container::-webkit-scrollbar {
    width: 8px;
}

.scrollable-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scrollable-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 客户卡片样式微调 */
.customer-card {
    transition: all 0.2s ease;
    border: 1px solid #eaeaea;
}

.customer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 用户条目样式微调 */
.user-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.user-item:hover {
    background-color: #f8f9fa;
}

/* 角色标签样式 */
.role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
    min-width: 60px;
    text-align: center;
}

.role-admin { background-color: #e0f2ff; color: #0d6efd; }
.role-sales { background-color: #d1f0e0; color: #198754; }
.role-warehouse { background-color: #fff2cc; color: #e6ac00; }
.role-salesadmin { background-color: #f8d7da; color: #dc3545; }
.role-aftersales { background-color: #e2d9f3; color: #6f42c1; }

/* 添加数据加载状态样式 */
.data-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}
.custom-progress {
    border-radius: 4px;
    height: 8px; /* 保持原有高度 */
}
.stat-item {
    padding: 0 15px; /* 左右内边距 */
}
.stat-item .fw-bold {
    font-size: 1.25rem; /* 放大数字 */
}

     /* 统一卡片样式 */
 .dashboard-card {
     border-radius: 0.75rem;
     box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
     border: none;
     transition: transform 0.3s ease;
     height: 100%;
 }

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4e73df;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 报表统计模块样式优化 */
.stat-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
}

.stat-item {
    background-color: #ffffff;
    border-radius: 0.65rem;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.1);
    border-color: #d1d3e2;
}

.stat-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon.sales {
    background-color: rgba(78, 115, 223, 0.15);
    color: #4e73df;
}

.stat-icon.orders {
    background-color: rgba(28, 200, 138, 0.15);
    color: #1cc88a;
}

.stat-icon.service {
    background-color: rgba(231, 74, 59, 0.15);
    color: #e74a3b;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.progress-section {
    padding: 0 1.5rem 1.5rem;
}

.progress-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #4e73df;
}

.custom-progress {
    height: 0.75rem;
    background-color: #eef1f9;
    border-radius: 0.5rem;
    overflow: hidden;
}

.custom-progress-bar {
    height: 100%;
    background-color: #4e73df;
    border-radius: 0.5rem;
    transition: width 1s ease-in-out;
}

/* 原有样式保持不变 */
.dashboard-header {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
}

.scrollable-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4e73df;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.role-badge {
    padding: 0.35em 0.65em;
    border-radius: 10rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.role-admin { background-color: #e0e6ff; color: #4e73df; }
.role-sales { background-color: #d1f7e4; color: #1cc88a; }
.role-warehouse { background-color: #fff8e1; color: #b78103; }
.role-salesadmin { background-color: #e0f7f5; color: #00bcd4; }
.role-aftersales { background-color: #ffeef0; color: #e54b62; }

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.customer-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.user-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}
